#include<stdio.h>
int main()
{
    int num, a=0;

    for (num = 1; num <= 100; num++)
    {
        if (num % 3 == 0)
        {
            a = a + num;
        }
    }
    printf("a=%d", a);
    return 0;
}